package cn.bisoft.java.bean.entity;

import java.io.Serializable;


/**
 * This is an object that contains data related to the AnteIssueNotifyLog table. Do not modify this class because it
 * will be overwritten if the configuration file related to this class is modified.
 * @hibernate.class table="AnteIssueNotifyLog"
 */

public abstract class BaseAnteIssueNotifyLog implements Serializable
{	
	private static final long serialVersionUID = 1L;
	
	public static String REF = "AnteIssueNotifyLog";

	public static String PROP_FLAG = "flag";

	public static String PROP_ISSUE_ID = "issueId";

	public static String PROP_SEND_STATE = "sendState";

	public static String PROP_SEND_TIME = "sendTime";

	public static String PROP_GAME_ID = "gameId";

	public static String PROP_SEQ_NO = "seqNo";

	public static String PROP_ISSUE_NAME = "issueName";

	public static String PROP_COUNTER_I_D = "counterID";

	public static String PROP_TRY_TIMES = "tryTimes";

	public static String PROP_RESPONSE_CODE = "responseCode";

	// constructors
	public BaseAnteIssueNotifyLog()
	{
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteIssueNotifyLog(java.lang.Long seqNo)
	{
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteIssueNotifyLog(java.lang.Long seqNo, java.lang.String counterID, java.lang.Integer flag,
			java.lang.Integer gameId, java.lang.Integer issueId, java.lang.String issueName,
			java.lang.Integer sendState, java.util.Date sendTime)
	{

		this.setSeqNo(seqNo);
		this.setCounterID(counterID);
		this.setFlag(flag);
		this.setGameId(gameId);
		this.setIssueId(issueId);
		this.setIssueName(issueName);
		this.setSendState(sendState);
		this.setSendTime(sendTime);
		initialize();
	}

	protected void initialize()
	{
	}

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long seqNo;

	// fields
	private java.lang.String counterID;

	private java.lang.Integer flag;

	private java.lang.Integer gameId;

	private java.lang.Integer issueId;

	private java.lang.String issueName;

	private java.lang.Integer sendState;

	private java.util.Date sendTime;

	private java.lang.Integer tryTimes;

	private java.lang.String responseCode;

	public java.lang.String getResponseCode()
	{
		return responseCode;
	}

	public void setResponseCode(java.lang.String responseCode)
	{
		this.responseCode = responseCode;
	}

	public java.lang.Integer getTryTimes()
	{
		return tryTimes;
	}

	public void setTryTimes(java.lang.Integer tryTimes)
	{
		this.tryTimes = tryTimes;
	}

	/**
	 * Return the unique identifier of this class
	 * @hibernate.id generator-class="native" column="SeqNo"
	 */
	public java.lang.Long getSeqNo()
	{
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo(java.lang.Long seqNo)
	{
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}

	/**
	 * Return the value associated with the column: CounterID
	 */
	public java.lang.String getCounterID()
	{
		return counterID;
	}

	/**
	 * Set the value related to the column: CounterID
	 * @param counterID the CounterID value
	 */
	public void setCounterID(java.lang.String counterID)
	{
		this.counterID = counterID;
	}

	/**
	 * Return the value associated with the column: Flag
	 */
	public java.lang.Integer getFlag()
	{
		return flag;
	}

	/**
	 * Set the value related to the column: Flag
	 * @param flag the Flag value
	 */
	public void setFlag(java.lang.Integer flag)
	{
		this.flag = flag;
	}

	/**
	 * Return the value associated with the column: GameId
	 */
	public java.lang.Integer getGameId()
	{
		return gameId;
	}

	/**
	 * Set the value related to the column: GameId
	 * @param gameId the GameId value
	 */
	public void setGameId(java.lang.Integer gameId)
	{
		this.gameId = gameId;
	}

	/**
	 * Return the value associated with the column: IssueId
	 */
	public java.lang.Integer getIssueId()
	{
		return issueId;
	}

	/**
	 * Set the value related to the column: IssueId
	 * @param issueId the IssueId value
	 */
	public void setIssueId(java.lang.Integer issueId)
	{
		this.issueId = issueId;
	}

	/**
	 * Return the value associated with the column: IssueName
	 */
	public java.lang.String getIssueName()
	{
		return issueName;
	}

	/**
	 * Set the value related to the column: IssueName
	 * @param issueName the IssueName value
	 */
	public void setIssueName(java.lang.String issueName)
	{
		this.issueName = issueName;
	}

	/**
	 * Return the value associated with the column: SendState
	 */
	public java.lang.Integer getSendState()
	{
		return sendState;
	}

	/**
	 * Set the value related to the column: SendState
	 * @param sendState the SendState value
	 */
	public void setSendState(java.lang.Integer sendState)
	{
		this.sendState = sendState;
	}

	/**
	 * Return the value associated with the column: SendTime
	 */
	public java.util.Date getSendTime()
	{
		return sendTime;
	}

	/**
	 * Set the value related to the column: SendTime
	 * @param sendTime the SendTime value
	 */
	public void setSendTime(java.util.Date sendTime)
	{
		this.sendTime = sendTime;
	}

	public boolean equals(Object obj)
	{
		if (null == obj)
			return false;
		if (!(obj instanceof AnteIssueNotifyLog))
			return false;
		else
		{
			AnteIssueNotifyLog anteIssueNotifyLog = (AnteIssueNotifyLog) obj;
			if (null == this.getSeqNo() || null == anteIssueNotifyLog.getSeqNo())
				return false;
			else
				return (this.getSeqNo().equals(anteIssueNotifyLog.getSeqNo()));
		}
	}

	public int hashCode()
	{
		if (Integer.MIN_VALUE == this.hashCode)
		{
			if (null == this.getSeqNo())
				return super.hashCode();
			else
			{
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	public String toString()
	{
		return super.toString();
	}

}